#define _CRT_SECURE_NO_WARNINGS 1
#include<iostream>
#include<string>
using namespace std;
//class a
//{
//public:
//	a()
//	{
//		cout << "a()" << endl;
//	}
//	~a()
//	{
//		cout << "~a()" << endl;
//	}
//};
class Solution {
public:
    static int StrToInt(string str)
    {
        int flag = 1;
        int num = 0;
        for (int i = 0; i < str.size(); i++)
        {
            if (i == 0 && str[i] == '-')
                flag = -1;
            if (i == 0 && str[0] == '+')
                flag = 1;
            if (i != 0 && isdigit(str[i]))
            {
                num *= 10;
                num += str[i]-'0';
            }
            else if(i!=0&& (!isdigit(str[i])))
                return 0;
        }
        return num * flag;
    }
};
int main()
{
	//const char* pchar = "abcd";
	/*int d = 1000;
	double a = 1;
	cout << &d <<endl<<&a<<endl;
	printf("%02d", d);*/
	//cout<<sizeof(pchar)<<strlen(pchar);
	/*char* p = new char[1024*1024];
	delete []p;*/
	/*a* p = new a[5];
	delete []p;*/
    /*string s1 = "-1212123";
    cout << Solution::StrToInt(s1) << endl;*/
    /*string s1("https://leetcode.cn/problems/reverse-string/");
    int pos1 = s1.find("://");
    if (pos1 != string::npos)
    {
        string s2 = s1.substr(0, pos1);
        cout << s2 << endl;
    }
    int pos2 = s1.find('/', pos1 + 3);
    if (pos2 != string::npos)
    {
        string s3 = s1.substr(pos1 + 3, pos2 - (pos1 + 1));
        string s4 = s1.substr(pos2+1);
        cout << s3 << endl << s4 << endl;
    }*/
    /*string s1 = to_string(1111);
    int a = stoi(s1);
    cout << s1 << a;*/
   /* const string s1("abcde");
    string::const_iterator begin1 = s1.begin();
    string::const_iterator end1 = s1.end();
    for (; begin1 < end1; begin1++)
    {
        cout <<*begin1<<" ";
    }
    cout << endl;
    for (auto ch : s1)
    {
        cout << ch << " ";
    }
    cout << endl;*/
	return 0;
}